package model

import (
	"fmt"
	"gitee.com/xuxinzhi2206/corehub/database/mysql"
	"gorm.io/gorm"
)

func Migrate() error {
	err := mysql.WithMysql(func(db *gorm.DB) error {
		return db.AutoMigrate(new(Register))
	})
	if err != nil {
		fmt.Println("连接失败", err)
	}
	return nil
}
